package stringStudy;

public class LeftRotateString {

    /**
     * JZ43 左旋转字符串
     * @param args
     */
    public static void main(String[] args) {

    }

    public String LeftRotateString(String str,int n) {
        if (str == "")
            return "";
        String subString1 = str.substring(0, n);
        String subString2 = str.substring(n, str.length());
        return subString2 + subString1;
    }
}
